package com.cskaoyan.vo.home;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * description:小程序的WxHomeIndex功能的返回值的成员变量coupon的list类型
 * 在coupon表中查询
 * author:houzhitao@139.com
 */
@Data
public class WxHomeIndexSonCouponVo {
    /**
     * id : 26
     * name : 测试4
     * desc : 测试4介绍
     * tag : 测试4标签
     * discount : 99
     * min : 100
     * days : 10
     * startTime : 2021-04-12 16:59:49
     * endTime : 2021-04-27 00:00:00
     */

    private int id;
    private String name;
    private String desc;
    private String tag;
    private BigDecimal discount;
    private BigDecimal min;
    private Short days;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
